from django.contrib import admin
from yatcs.main.models import *

class ProjectAdmin(admin.ModelAdmin):
	list_display = ('name','status','priority','customer')
	raw_id_fields = ('manager',)

class UserAdmin(admin.ModelAdmin):
	list_display = ('name','access')

class BugAdmin(admin.ModelAdmin):
	list_display = ('title','status')
	raw_id_fields = ('project','version','assigned','author')

class VersionsAdmin(admin.ModelAdmin):
	list_display = ('version',)
	raw_id_fields = ("project",)

class ReleaseAdmin(admin.ModelAdmin):
	list_display = ('name','devRelease','qaRelease','startTesting','endTesting','custRelease',)
	raw_id_fields = ('project','version',)

admin.site.register(Release,ReleaseAdmin)
admin.site.register(Versions,VersionsAdmin)
admin.site.register(Bug,BugAdmin)	
admin.site.register(Project,ProjectAdmin)
admin.site.register(User,UserAdmin)
